Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): add user-specified PostDeploy forge options #2703

Merged
merged 3 commits into from
Apr 25, 2024
Merged

Conversation

dk1a
Copy link
Contributor

@dk1a dk1a commented Apr 22, 2024

fixes #2631
Similar to test's forgeOptions, this allows passing arbitrary user options to forge script
In my case this is needed for --slow, without which the script breaks because it's too big

Copy link

changeset-bot bot commented Apr 22, 2024

🦋 Changeset detected

Latest commit: 097ffed

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages
Name Type
@latticexyz/cli Patch
mock-game-contracts Patch
@latticexyz/abi-ts Patch
@latticexyz/block-logs-stream Patch
@latticexyz/common Patch
@latticexyz/config Patch
create-mud Patch
@latticexyz/dev-tools Patch
@latticexyz/faucet Patch
@latticexyz/gas-report Patch
@latticexyz/protocol-parser Patch
@latticexyz/query Patch
@latticexyz/react Patch
@latticexyz/recs Patch
@latticexyz/schema-type Patch
@latticexyz/services Patch
solhint-config-mud Patch
solhint-plugin-mud Patch
@latticexyz/store-indexer Patch
@latticexyz/store-sync Patch
@latticexyz/store Patch
@latticexyz/utils Patch
@latticexyz/world-modules Patch
@latticexyz/world Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -16,6 +16,7 @@ const devOptions = {
rpc: deployOptions.rpc,
configPath: deployOptions.configPath,
alwaysRunPostDeploy: deployOptions.alwaysRunPostDeploy,
postDeployForgeOptions: deployOptions.postDeployForgeOptions,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about just forgeOptions to keep it the same as the other commands?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if not, kinda wondering about forgeScriptOptions since I am kinda anticipating more than just post deploy in the future: #1755

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some commands like deploy or test would have both forgeOptions and postDeployForgeOptions
I feel like it'd be confusing if dev-contracts is the only one where forgeOptions means something kind of different, but I can see the reasoning
Up to you, it's easy to change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if not, kinda wondering about forgeScriptOptions since I am kinda anticipating more than just post deploy in the future: #1755

Sure, seems like a better name, updated

@holic holic merged commit 8493f88 into main Apr 25, 2024
11 of 12 checks passed
@holic holic deleted the dk1a/postdeployopts branch April 25, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow manually setting forge script params when running deploy with a PostDeploy
2 participants